<?php
/**
 * 鉴权-签名验证
 * User: yanglei
 * Date: 2020/6/16
 * Time: 4:57 PM
 */

namespace App\Http\Middleware;


use  Closure;
use Illuminate\Http\Request;

class CheckSign
{

    public function handle(Request $request, Closure $next)
    {
        if($request->input('signTag') === "open"){
            return redirect("/");
        }

        // 前置
        return $next($request);
    }

}